package cn.tutu.blockchain.exchange.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import cn.tutu.blockchain.base.BaseDao;
import cn.tutu.blockchain.exchange.entity.Exchange;

@Mapper
public interface ExchangeDao extends BaseDao<Exchange> {

	List<Exchange> findByUserId(String userId);

	void updateStatus(Exchange exchange);

	List<Exchange> getByStatus(String status);

	Exchange findOneByStatus(String code);

	void updateLastDate(String id);

}
